<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/16
 * Time: 11:30
 */

namespace app\controllers;

use app\models\Robots;

class RobotsController extends BaseController
{
    public function indexAction()
    {
        $result = Robots::find();
        $one = Robots::findFirst(['id' => 1]);
        var_dump($one);
        var_dump($result);
    }
}